package com.mf.all.entity.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.time.LocalDate;

import lombok.Data;

import java.io.Serial;
import java.util.List;

/**
 * 用户表
 *
 * @date 2025-04-02 22:36:48
 */
@Data
@TableName("t_user" )
public class DtoUser implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId
    private Long id;

    /**
     * 状态,0启用,1禁用
     */

    private Integer status;
    /**
     *
     */

    private String username;
    /**
     *
     */

    private String password;
    /**
     *
     */

    private String nick;

    /**
     * 邮箱
     */

    private String email;
    /**
     * 所属岗位
     */

    private Integer jobId;
    /**
     * 所属部门
     */

    private Integer deptId;
    /**
     *
     */

    private String remark;
    /**
     *
     */

    private String douser;
    /**
     *
     */

    private LocalDateTime dotime;
    /**
     *
     */

    private LocalDateTime uptime;

    @TableField(exist = false)
    private List<DtoRole> roles;

    @TableField(exist = false)
    private List<String> permissions;

    @TableField(exist = false)
    private String tokenValue;

}
